package com.Ajava1704.for并发包下的类.thread;

/**
 * 作者: LCG
 * 日期: 2020/6/23 22:29
 * 描述:
 */
public class Thread3 extends Thread {

    private Object conditionUtils;

    public Thread3(Object conditionUtils) {
        this.conditionUtils = conditionUtils;
    }

    @Override
    public void run() {
        try {
            synchronized (conditionUtils){
                System.out.println("========ThreadA====wait====");
                conditionUtils.wait();
                System.out.println("========ThreadA====run====");
                synchronized (conditionUtils){
                    conditionUtils.notify();
                }
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }



}
